Count of the non-prime divisors of a given number
Given a number N, the task is to find the count of non-prime divisors of the given number N....
read more
Check if the Matrix satisfies the given conditions
Given a matrix mat[][], the task is to check whether the matrix is valid or not. A valid matrix is the matrix that satisfies the given conditions:...
read more
Reach the numbers by making jumps of two given lengths
Given integers k, d1, d2 and an integer array arr[]. Starting from number k you are allowed to make jumps of size d1 and d2 i.e. all the possible moves from k are:...
read more
Count of packets placed in each box after performing given operations
Given two arrays arr[] and operations[] consisting of N and M integers, and an integer C. The array arr[] represents the initial number of packets in the N boxes, each of capacity C. Starting from position 1, perform the following types of operations in the sequence specified by the array operations[]:...
read more
Infosys Interview Experience for System Engineer Specialist (SES) 2021
If you want to work in Infosys for System Engineer Specialist i.e SES role you have two ways one is clear HackWithInfy and another is InfyTq, you can go through any exam. I am selecting through the HackWithInfy, so HackwithInfy exam has 3 rounds each round has three questions, and the exam is taken on hackerrank Platform. Each round consists of 3 questions easy, medium, and hard level. if you’re able to solve 2 questions from rouns 1 you will go into the second round and based on our performance you will be shortlisted for Power Programmer or SES role. Questions are from DP, Trees, and Graphs. I have cleared these rounds and gets a preplacement interview offer for the SES roles. Now Let’s go through the interview....
read more
Amadeus Labs Bangalore Interview experience
I received a call from recruiting consultancy regarding a vacancy for C++ profile in Amadeus. The profile was quite interesting. After a week I received a call from Amadeus regarding schedule of the interview. 1st and 2nd rounds were scheduled on a Saturday at 12 PM. As I reached the reception area at Etamin B block of Prestige Tech Park 2 Marathhalli, Bangalore, they asked me to wait for the interview and it started after a while....
read more
C++ Program to Find the K-th Largest Sum Contiguous Subarray
Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative and positive numbers....
read more
Reduce the array to atmost one element by the given operations
Given an array of integers arr[], the task is to find the remaining element in the array after performing the following operations:...
read more
std::is_heap( ) in C++ with Examples
The std::is_heap() function in C++ Standard Template Library is used to check whether a given range of elements forms Max Heap or not. It returns True when given ranges of elements forms Max Heap, else it returns False....
read more
Longest subarray of non-empty cells after removal of at most a single empty cell
Given a binary array arr[], the task is to find the longest subarray of non-empty cells after the removal of at most 1 empty cell....
read more
Longest subsequence possible that starts and ends with 1 and filled with 0 in the middle
Given a binary string s, the task is to find the length of the longest subsequence that can be divided into three substrings such that the first and third substrings are either empty or filled with 1 and the substring at the middle is either empty or filled with 0....
read more
Find maximum meetings in one room
There is one meeting room in a firm. There are N meetings in the form of (S[i], F[i]) where S[i] is the start time of meeting i and F[i] is the finish time of meeting i. The task is to find the maximum number of meetings that can be accommodated in the meeting room. Print all meeting numbers...
read more